package com.edu.test;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyTest03 {


    @Test
    public void test01(){
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-ioc2.xml");

        System.out.println(context.getBean("dataSource"));

    }

    @Test
    public void test02(){
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-ioc3.xml");

        System.out.println(context.getBean("ds"));

    }



}
